﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.Passport.Domain
{
    /// <summary>
    /// 采购单表
    /// </summary>
    public class PurchaseOrder
    {
        /// <summary>
        /// 编号
        /// </summary>
        [Key]
        public int ?PurchaseOrderId { get; set; }
        /// <summary>
        /// 采购生成的编号
        /// </summary>
        public string ?PurchaseOrderNumber { get; set; }
        /// <summary>
        /// 单据类型
        /// </summary>
        public string ?BillType { get; set; }
        /// <summary>
        /// 关联订单号
        /// </summary>
        public string ?AssociatedorderNumber { get; set; }
        /// <summary>
        /// 供应商名
        /// </summary>
        public string ?SupplierName { get; set; }
        /// <summary>
        /// 客户客户名称
        /// </summary>
        public string ?CustomerName { get; set; }
        /// <summary>
        /// 联系人
        /// </summary>
        public string ?ContactPerson { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string ?Phone { get; set; }
        /// <summary>
        /// 收货日
        /// </summary>
        public DateTime ?ReceiveDate { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string ?Remark { get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        public string ?Maker { get; set; }
        public System.DateTime ?MakeTime { get; set; } = System.DateTime.Parse("2019-05-25");
       
        public ICollection<PurchaseOrderProduct> Products { get; set; } = new List<PurchaseOrderProduct>();
    }
}
